Package com.cisco.pt.ipc.sim.pdu.impl
Class OSPFDDPacketImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFDDPacketImpl
- All Implemented Interfaces:
IPCData,OSPFDDPacket,OSPFPacket,Pdu,Signal
- Direct Known Subclasses:
OSPFv3DDPacketImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected List<OSPFLSAHeader>protected booleanprotected booleanprotected Shortprotected Byteprotected intFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
areaId, authenticationType, checkSum, length, routerId, sequence, typeCode, versionFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) booleanbooleanbooleangetMtu()intvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetInitBit(boolean initBit) voidsetListLSAHeaders(List<OSPFLSAHeader> listLSAHeaders) voidsetMasterBit(boolean masterBit) voidsetMoreBit(boolean moreBit) voidvoidvoidsetSeqNumber(int seqNumber) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
getAreaId, getAuthenticationType, getCheckSum, getLength, getRouterId, getSequence, getTypeCode, getVersion, setAreaId, setAuthenticationType, setCheckSum, setLength, setRouterId, setSequence, setTypeCode, setVersionMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.OSPFPacket
getAreaId, getAuthenticationType, getCheckSum, getLength, getRouterId, getSequence, getTypeCode, getVersion, setAreaId, setAuthenticationType, setCheckSum, setLength, setRouterId, setSequence, setTypeCode, setVersionMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
mtu
-
option
-
initBit
protected boolean initBit -
masterBit
protected boolean masterBit -
moreBit
protected boolean moreBit -
seqNumber
protected int seqNumber -
listLSAHeaders
-
-
Constructor Details
-
OSPFDDPacketImpl
public OSPFDDPacketImpl()
-
-
Method Details
-
getMtu
- Specified by:
getMtuin interfaceOSPFDDPacket- Returns:
- Short Returns a Short
-
setMtu
- Specified by:
setMtuin interfaceOSPFDDPacket- Parameters:
mtu- Takes in a parameter of mtu
-
getOption
- Specified by:
getOptionin interfaceOSPFDDPacket- Returns:
- Byte Returns a Byte
-
setOption
- Specified by:
setOptionin interfaceOSPFDDPacket- Parameters:
option- Takes in a parameter of option
-
getInitBit
public boolean getInitBit()- Specified by:
getInitBitin interfaceOSPFDDPacket- Returns:
- boolean Returns a boolean
-
setInitBit
public void setInitBit(boolean initBit) - Specified by:
setInitBitin interfaceOSPFDDPacket- Parameters:
initBit- Takes in a parameter of initBit
-
getMasterBit
public boolean getMasterBit()- Specified by:
getMasterBitin interfaceOSPFDDPacket- Returns:
- boolean Returns a boolean
-
setMasterBit
public void setMasterBit(boolean masterBit) - Specified by:
setMasterBitin interfaceOSPFDDPacket- Parameters:
masterBit- Takes in a parameter of masterBit
-
getMoreBit
public boolean getMoreBit()- Specified by:
getMoreBitin interfaceOSPFDDPacket- Returns:
- boolean Returns a boolean
-
setMoreBit
public void setMoreBit(boolean moreBit) - Specified by:
setMoreBitin interfaceOSPFDDPacket- Parameters:
moreBit- Takes in a parameter of moreBit
-
getSeqNumber
public int getSeqNumber()- Specified by:
getSeqNumberin interfaceOSPFDDPacket- Returns:
- int Returns a int
-
setSeqNumber
public void setSeqNumber(int seqNumber) - Specified by:
setSeqNumberin interfaceOSPFDDPacket- Parameters:
seqNumber- Takes in a parameter of seqNumber
-
getListLSAHeaders
- Specified by:
getListLSAHeadersin interfaceOSPFDDPacket- Returns:
- List<OSPFLSAHeader> Returns a List<OSPFLSAHeader>
-
setListLSAHeaders
- Specified by:
setListLSAHeadersin interfaceOSPFDDPacket- Parameters:
listLSAHeaders- Takes in a parameter of listLSAHeaders
-
getFieldType
- Overrides:
getFieldTypein classOSPFPacketImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classOSPFPacketImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classOSPFPacketImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classOSPFPacketImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classOSPFPacketImpl
-